<%@ page language="java" import="dao.impl.DoctorDaoImpl,entity.Doctor" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ page import="java.util.List" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<table style="background-color:#C4FFC9;text-align:center">
    <tr style="background-color:#5D5E5D">
        <td style="width:100px">身份证号</td>
        <td style="width:80px">姓名</td>
        <td style="width:80px">电话</td>
        <td style="width:80px">性别</td>
        <td style="width:80px">学历</td>
        <td style="width:100px">入职时间</td>
        <td style="width:80px">职务</td>
        <td style="width:100px">邮箱</td>

    </tr>
    <%
        DoctorDaoImpl doctorDao = new DoctorDaoImpl();
        List<Doctor> list = doctorDao.getAllDoctor();

        for (int i = 0; i < list.size(); i++) {
    %>
    <tr align="center">
        <td><%=list.get(i).getId()%>
        </td>
        <td><%=list.get(i).getName()%>
        </td>
        <td><%=list.get(i).getTel()%>
        </td>
        <td><%=list.get(i).getSex()%>
        </td>
        <td><%=list.get(i).getEdu()%>
        </td>
        <td><%=list.get(i).getJoindate()%></td>
        <td><%=list.get(i).getPost()%></td>
            <td><%=list.get(i).getEmail()%></td>

            <%}%>

</table>
</body>
</html>